package com.sneaker.shower.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sneaker.shower.entity.domain.sys.SysUserDO;
import com.sneaker.shower.entity.dto.SysUserDTO;
import com.sneaker.shower.entity.dto.UserDTO;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author Hechangjian
 * @version 1.0
 * @className SysUserService
 * @date 2019/12/01 1:36
 * @description
 * @program bath
 */
public interface SysUserService extends IService<SysUserDO> {
    String invitationCode();

    UserDTO login(String userName, String password);

    UserDTO login(String openId);

    Boolean isExist(String openId);

    List<UserDTO> listAll();

    String addSysUser(SysUserDTO dto);

    @Transactional
    Boolean modifySysUser(SysUserDTO dto);

    @Transactional
    Boolean delSysUser(String userName, String guid);

    Integer getNumber(Long organizationGuid);
}
